<template>

</template>

<script>
import {defineComponent} from 'vue';

export default defineComponent({
  name: 'RefComponentChildren',
  expose: ['exposeMessage', 'exposeMethod'],
  data() {
    return {
      message: '不暴露属性',
      exposeMessage: '暴露属性'
    };
  },
  methods: {
    method() {
      console.log('不暴露方法');
    },
    exposeMethod() {
      console.log('暴露方法');
    }
  }
});
</script>

<style scoped>

</style>